home *** CD-ROM | disk | FTP | other *** search
/ Champak 45 / Vol 45.iso / games / escape.swf / scripts / frame_6 / PlaceObject2_244_43 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2005-08-23  |  505 b   |  28 lines

  1. onClipEvent(enterFrame){
  2.    _alpha = 80;
  3.    if(tmp_gauge < _global.gauge)
  4.    {
  5.       chk = 1;
  6.    }
  7.    tmp_gauge = _global.gauge;
  8.    if(_global.gauge > 0 && chk == 0)
  9.    {
  10.       _global.gauge -= 0.5;
  11.       this._width -= 0.5;
  12.       if(_global.gauge > 6)
  13.       {
  14.          _global.gauge -= 2;
  15.          this._width -= 2;
  16.       }
  17.    }
  18.    else if(chk > 0)
  19.    {
  20.       chk -= 1;
  21.    }
  22.    if(this._width < 0)
  23.    {
  24.       this._width = _root.gauge_b._width;
  25.       _global.gauge = 0;
  26.    }
  27. }
  28.